package com.heima.a07_demo.server.service;

import com.heima.a07_demo.pojo.dto.PatientDTO;
import com.heima.a07_demo.pojo.entity.Patient;

import java.util.List;
import java.util.Map;

public interface PatientService {
    Long addPatient(Patient patient);

    Map<String, Object> getPageHistory(Integer page, Integer pageSize, String name);

    Map<String, Object> getPageNow(Integer page, Integer pageSize);

    boolean deleteDiagnosisRecord(Long id);

    void updatePatient(PatientDTO dto);

    Patient getById(Long id);
    List<Integer> getByIds();
}
